package beautiful.butterfly.drds.data_exchange.dataxservice.face.domain.enums;

public enum State implements EnumValue
{


    RUNNING(1),
    KILLED(2),
    FAILED(3),
    SUCCEEDED(4);


    private int value;

    private State(int value)
    {
        this.value = value;
    }

    public int value()
    {
        return value;
    }


    public boolean isFinished()
    {
        return this == KILLED || this == FAILED || this == SUCCEEDED;
    }

    public boolean isRunning()
    {
        return !isFinished();
    }

}